package com.feisbook.justtry.dao;

import com.feisbook.justtry.pojo.Department;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

public class DepartmentDao {

    private static Map<Integer, Department> departments = null;

    static {
        departments = new HashMap<Integer, Department>();
        departments.put(101, new Department(101, "教学部"));
        departments.put(101, new Department(102, "市场部"));
        departments.put(101, new Department(103, "教研部"));
        departments.put(101, new Department(104, "运营部"));
        departments.put(101, new Department(105, "后勤部"));
    }

    // todo Collection
    public Collection<Department> getDepartments() {
        return departments.values();
    }
}
